package com.tigger.common.utils;

import java.util.Random;

public class CommonUtils {

    /**
     * 获取随机数
     *
     * @param maxLimit
     * @return
     */
    public static int getRandom(int maxLimit) {
        Random random = new Random();
        return (random.nextInt() % maxLimit);
    }

    public static void main(String[] args) {
        System.out.println(getRandom(100));
    }
}
